@include('public.head')
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox-content">
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>投诉人</th>    
                            <th>投诉原因</th>
                            <th>建议内容</th>
                            <th>建议</th>
                            <th>投诉图片</th>
                            <th>时间</th>
                        </tr>
                    </thead>
                    <tbody>
                    @forelse ($suggest as $probability)
                        <tr>
                            <td>{{$probability->complainant}}</td>
                            <td>{{$probability->complaint}}</td>
                            <td>{{$probability->content}}</td>
                            <td>{{$probability->suggest}}</td>
                            <td><img src="{{asset($probability->image)}}" width='150' height='150'></td>
                            <td>{{$probability->time}}</td>
                        </tr>
                    @empty
                    @endforelse
                    </tbody>
                </table>
                {{ $suggest->links() }}
            </div>
            
        </div>
    </div>
</body>

</html>
